import { Capacitor } from '@capacitor/core'

export class AndroidPermissions {
  /**
   * 检查剪贴板权限
   */
  static async checkClipboardPermission(): Promise<boolean> {
    if (!Capacitor.isNativePlatform()) return true

    try {
      // Capacitor的Clipboard插件通常不需要特殊权限
      // 但我们可以测试读取功能
      await Capacitor.Plugins.Clipboard?.read()
      return true
    } catch (error) {
      console.warn('Clipboard permission check failed:', error)
      return false
    }
  }
}
